package com.erp.shop.service;

import com.erp.shop.domain.bo.ErpSellerStoreEmpowerExtendBo;
import com.erp.shop.domain.vo.ErpSellerStoreEmpowerExtendVo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.oldPage.TableDataInfo;
import com.ruoyi.shop.api.domain.ErpSellerStoreEmpowerExtend;

import java.util.Collection;
import java.util.List;

/**
 * 卖家店铺Ae授权信息Service接口
 *
 * @author erp
 * @date 2023-04-20
 */
public interface IErpSellerStoreEmpowerExtendService {

    /**
     * 查询卖家店铺Ae授权信息
     */
    ErpSellerStoreEmpowerExtendVo queryById(Long id);

    /**
     * 查询卖家店铺Ae授权信息列表
     */
    TableDataInfo<ErpSellerStoreEmpowerExtendVo> queryPageList(ErpSellerStoreEmpowerExtendBo bo, PageQuery pageQuery);

    /**
     * 查询卖家店铺Ae授权信息列表
     */
    List<ErpSellerStoreEmpowerExtendVo> queryList(ErpSellerStoreEmpowerExtendBo bo);

    /**
     * 新增卖家店铺Ae授权信息
     */
    Boolean insertByBo(ErpSellerStoreEmpowerExtendBo bo);

    /**
     * 修改卖家店铺Ae授权信息
     */
    Boolean updateByBo(ErpSellerStoreEmpowerExtendBo bo);

    /**
     * 校验并批量删除卖家店铺Ae授权信息信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    ErpSellerStoreEmpowerExtend selectByUserNick(String userNick);

    ErpSellerStoreEmpowerExtend queryBySellerId(Long storeId);

    Integer failureToken(Long storeId);

    Integer updateById(ErpSellerStoreEmpowerExtend empowerExtend);

    Integer insertEmpowerRxtend(ErpSellerStoreEmpowerExtend empowerExtend);

    R<Object> getSellerStoreExtendInfo(ErpSellerStoreEmpowerExtend erpSellerStoreEmpowerExtend);

    R<Object> getSellerStoreExtendInfoByStoreId(String storeId);
}
